Flowchart & Algorithm | full explanation

 PROGRAMMING CODESTER 

about programming language and flowchart / algorithm

So, on a previous blog you learnt about the basics of computers. 

So now it's the first tutorial of programming language. 

There are many types of programming languages. 

Programming language is a language that can be used to talk to a computer. 

Types of programming language: 

  1. 1.Machine learning 

  1. 2.Procedural programming 

  1. 3.Object oriented 

  1. 4.Scripting 

  1. 5.Logic programming 

So, the first step to learn any programming language is algorithm and flow chart. 

Algorithm: - 

An algorithm is the step-by-step representation of any program or problem. 

Flowchart: 

Flowchart is the pictorial representation of any problem. 

In flowchart many shapes included which describe below here: 

  

Oval: for star or end 

Rectangle: for process 

Quadrilateral: for input and output 

Square (like rhombus): for decision 

Arrow: for connecting steps 

 

So, these are the basic symbols used in flowchart. 

Now major difference between flowchart and algorithm: 

no 

flowchart 

Algorithm 

1 

Pictorial representation of program 

Step by step presentation of program 

2 

It is drawn using various symbols 

It's written in natural language 

3 

Easy to understand 

Difficult to understand 

4 

Easy for branching and looping problems 

Difficult in branching and looping problems 

5 

Impractical in big problems 

Can be written in any problems 

 

Let's see one example of algorithm and flowchart: 

Write an algorithm and draw flow chart for add two numbers: 

Algorithm for addition of two numbers: 

Step:1: -start 

Step:2: -enter any two numbers {input} 

Step: 3: -sum=a + b {formula of sum) {process} 

Step:4: - print the answer of sum {output} 

Step:5: -end 

flowchart for addition of two numbers: 

  

So, it's very easy and short example to understand flowchart and algorithm 

So, in the 1st tutorial of programming, we learn about what is programming language and also learn about flowchart and algorithm. 

So, I give some question I hope you all are solving this question and if you have any doubts comments below: 

Question: 

  1. 1.Define programming language 

  1. 2.Types of programming language 

  1. 3.What is a flowchart? 

  1. 4.What is algorithm? 

  1. 5.Difference between flowchart and algorithm 

  1. 6.Write an algorithm and a flowchart to find odd or even number 

  1. 7.Write an algorithm and a flowchart to find maximum number 

So, our next tutorial will be based on programming language. 

And we will start basic computer language C programming. 

Stay tuned! 

LEARN and EXPLORE!!

Comments

Popular posts from this blog

C programming | Printf and scanf ||

C programming | structure | Fundamentals of Structure

C programming | Fundamentals & Basic information

Basic question related programming || c programming || embedded programming

C++ || Operators with c++

C++ || string with c++ || Part - 1

Compiler & Interpreter | difference and explanation

c++|operators with c++|variables||

C programming | Nested structure | Array, function and pointer of structure|| structure Part-II

C++(oop)| Fundamentals | Concepts||